package com.ncbee.base.service.serviceimpl;

import com.ncbee.base.model.entity.Resource;
import com.ncbee.base.dao.ResourceDao;
import com.ncbee.base.model.vo.TreeVo;
import com.ncbee.base.service.ResourceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author youdianyun
 * @since 2018-11-23
 */
@Service
public class ResourceServiceImpl extends ServiceImpl<ResourceDao, Resource> implements ResourceService {
    @Autowired
    private ResourceDao resourceDao;
    @Override
    public List<TreeVo> findResourceMenuTree(){
        return resourceDao.queryMenuTreeVo();
    }
}
